% See 'README'...

dist_rel = dist_rel_AB;
dist_12  = dist_AB_2comp_3d;
len1 = 14;
len2 = 27;

for row=2:size(dist_rel,1),
    a1 = ceil((row-1)/len1);
    a2 = mod((row-2), len1) + 1;
    
    for col=2:size(dist_rel,2),
        b1 = ceil((col-1)/len2);
        b2 = mod((col-2), len2) + 1;
        
        % DEBUG [a1 b1 a2 b2]
        dist_cond(a1,b1,a2,b2) = dist_rel{row,col} + 0.1*dist_12(a1,b1) + 0.1*dist_12(a2,b2);
    end
end
